package com.cc.springbootvalidatedemo.domain;

import jakarta.validation.Valid;
import lombok.Data;

import java.util.List;

@Data
public class BatchRequest {
    @Valid // 触发集合内每个元素的校验
    private List<@Valid User> users;
}